import { InputCommand } from "./types";

export interface Msg_Resp<T> {
    type:string;
    code:number;
    data:T;
}
export class Msg_Login_Req{
    uid:string;
    constructor(uid:string){
        this.uid = uid;
    }
}

export class Msg_Login_Resp {
    uid:string;
    x:number;
    y:number;
}

export class Msg_Input_Req{
    cmds:InputCommand[];
    constructor(cmds:InputCommand[]){
        this.cmds = cmds;
    }
}